<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>激活账号</title>

    <%@include file="/WEB-INF/jsp/common/component/head.jsp"%>
</head>

<body>
    <div id="top" class="navbar-wrapper">
        <%@include file="/WEB-INF/jsp/common/component/navbar.jsp"%>
    </div>

    <div id="wrap">
        <div class="content">
            <input type="hidden" id="msg" value="${msg}">
            <input type="hidden" id="success" value="${success}">
        </div><!-- /#content -->
        <%@include file="/WEB-INF/jsp/common/component/footer.jsp"%>
    </div><!-- /#wrap -->
    <%@include file="component/foot.jsp"%>

    <script>
        $(function() {
            if($("#success").val()){
                swal({
                    title: "激活成功",
                    text: "您的账号已成功激活！",
                    type: "success",
                    confirmButtonText: "确定",
                    html: true
                },function(){
                    window.location = (path + "/login");
                });
            } else{
                errorMessage("激活失败！" + $("#msg").val());
            }
        });
    </script>

</body>

</html>